Jeffro is right about Gog and Magog in Revelation.
The book of Revelation does a lot of borrowing of wording and concepts from the OT and uses them as symbols and analogies.
The Gog and Magog used in Revelation is just an analogical comparison of the post-apocalyptic rebels to the Gog mentioned in Ezekiel. It's the same way Revelation uses Babylon the Great, which I'm now convinced is actually a reference to 1st century Jerusalem under the control of the anti-Christian Jewish religious hierarchy.
The fall and destruction of Babylon the Great mentioned in Revelation is actually recounting the fall and destruction of Jerusalem by the Romans from 66 to 70 CE. "Get out of her my people" is actually a reference to Jesus' warning to his followers that they should leave the city when they see it surrounded by encamped armies.
It's all worded as a prophecy to fool the reader into thinking that the book is older and that it correctly predicted the destruction of Jerusalem by Rome. This tactic was used to give the book credibility with readers. The same is true of 666 which is actually a gematria reference to Emperor Nero.